package com.xncoding.file;

import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;

public class RedaExample {
    public static void main(String[] args) throws IOException {

        // 存放文件的目录
        final String filepath1 = "D:\\Desktop\\压测接口.txt";

        // 方法二:使用 BufferedWriter 写文件
        long stime2 = System.currentTimeMillis();
        bufferedReadTest(filepath1);
        long etime2 = System.currentTimeMillis();
        System.out.println("BufferedWriter 写入用时:" + (etime2 - stime2));

    }



    /**
     * 方法二:使用 BufferedWriter 写文件
     * @param filepath 文件目录
     * @param content  待写入内容
     * @throws IOException
     */
    private static void bufferedReadTest(String filepath) throws IOException {
        BufferedReader bufferedWriter = new BufferedReader(new FileReader(filepath));

    }


}
